package com.region.integral.common_user.consume.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.region.integral.common_user.consume.IConsumeIntegral;
import com.region.integral.common_user.consume.dao.delegate.RegulationObjectDelegate;
@Component("common_user_consumeIntegral")
public class ConsumeIntegralImpl implements IConsumeIntegral {
	@Resource(name="consume_regulationObjectDelegate")
	private RegulationObjectDelegate regulationObjectDelegate;
	@Override
	public boolean byBuildGroup(int common_userid) {
		return regulationObjectDelegate.buildGroupDelegate(common_userid);
	}

	@Override
	public boolean byExchangeK(int common_userid,int KexchangeNum) {
		return regulationObjectDelegate.exchangeKDelegate(common_userid, KexchangeNum);
	}

	@Override
	public String byUnsubscribeGoods(int common_userid) {
		return regulationObjectDelegate.unsubscribeGoodsDelegate(common_userid);
	}

}
